﻿<UserControl x:Class="ETRobocon.RaceTraking.GameManagement.RunnerConsole"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:ETRobocon.RaceTraking.GameManagement"
    Height="300" Width="300">
    <UserControl.Resources>
        <src:ERTeamEntry x:Key="targetTeamEntry"/>
        <src:EntryTeamRunTimeNotifier x:Key="runtimeNotifier" Target="{StaticResource targetTeamEntry}"/>
    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="98*" />
            <ColumnDefinition Width="202*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Grid.DataContext>
            <Binding Source="{StaticResource taregetTeamEntry}"/>
        </Grid.DataContext>
        <Label Grid.Column="0" Grid.Row="0" Margin="2,2,2,2" Name="label1">TeamID</Label>
        <Label Grid.Column="0" Grid.Row="1" Margin="2,2,2,2" Name="label2">Bib</Label>
        <Label Grid.Column="0" Grid.Row="2" Margin="2,2,2,2" Name="label3">Name</Label>
        <Label Grid.Column="0" Grid.Row="3" Margin="2,2,2,2" Name="label4">Run Time</Label>
        <TextBlock Grid.Column="1" Grid.Row="0" Margin="2,2,2,2"
                   Name="textBlockTeamID" MinHeight="26" MaxHeight="26"
                   Text="{Binding Path=ID}"></TextBlock>
        <TextBlock Grid.Column="1" Grid.Row="1" Margin="2,2,2,2"
                   Name="textBlockBib" MinHeight="26" MaxHeight="26"
                   Text="{Binding Path=Bib}"></TextBlock>
        <TextBlock Grid.Column="1" Grid.Row="2" Margin="2,2,2,2"
                   Name="textBlockTeamName" MinHeight="26" MaxHeight="26"
                   Text="{Binding Path=Name}"></TextBlock>
        <TextBox Grid.Column="1" Grid.Row="3" Margin="2,2,2,2"
                 Name="textBlockRunTime"  MinHeight="26" MaxHeight="26"
                 Text="{Binding Source={StaticResource runtimeNotifier}, Path=RunTime}"></TextBox>
    </Grid>
</UserControl>
